package com.youlai.system.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description ="任务分页对象")
@Data
public class TaskPageVO {
    @Schema(description="任务ID")
    private Long id;

    private Integer type;

    @Schema(description = "任务类型")
    private String typeStr;

    @Schema(description = "部门ID")
    private Long deptId;

    @Schema(description = "部门名称")
    private String deptName;

    @Schema(description="任务内容")
    private String content;

    private Integer status;

    @Schema(description = "任务状态")
    private String statusStr;

    @Schema(description = "有效数")
    private Integer validCount;

    @Schema(description = "无效数")
    private Integer invalidCount;

    @Schema(description = "任务日志")
    private String msg;

    @Schema(description="开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    @Schema(description="结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

    @Schema(description = "执行时间")
    private String timeInterval;
}
